package cn.zymall.merchant.mapper;

import cn.zymall.common.model.Coupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MerchantCouponMapper extends BaseMapper<Coupon> {
      List<Coupon> getAllCoupon();

      List<Coupon> conditionQuery(@Param("couponName") String couponName,@Param("goodsType") Integer goodsType,@Param("couponStatus") Byte couponStatus);

      public Coupon getMerchantSingleCoupon(@Param("merchantId") Integer merchantId );
}
